package net.dgg.dggcloud.service.jrcrm.entity.orf;

import net.dgg.dggcloud.service.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName: Reimburse
 * @Description: 退款实体表
 * @author：郭伟
 * @date： 2017/11/6
 */
@Entity
@Table(name = "orf_reimburse")
public class Reimburse  extends BaseEntity {



    /**
     * 退款编号
     */
    @Column(name="reimburse_no")
    private String reimburseNo;

    /**
     * 订单ID
     */
    @Column(name="order_id")
    private Long orderId;

    /**
     * 申请人ID
     */
    @Column(name="apply_user_id")
    private Long applyUserId;

    /**
     * 申请人时间
     */
    @Column(name="apply_time")
    private Date applyTime;

    /**
     * 产品Id
     */
    @Column(name="product_id")
    private Long productId;

    /**
     * 退单类型  1 仅退款 2，内部结转,3退单退款
     */
    @Column(name="reimburse_type")
    private Integer reimburseType;

    /**
     * 金额
     */
    @Column(name="amount")
    private Long amount;

    /**
     * 退款方式
     */
    @Column(name="reimburse_pay")
    private String reimbursePay;


    /**
     * 退款账户
     */
    @Column(name="account")
    private String account;

    /**
     * 退款账户名
     */
    @Column(name="account_name")
    private String accountName;



    /**
     * 账户银行
     */
    @Column(name="bank")
    private String bank;

    /**
     * 收款人姓名
     */
    @Column(name="receipt_name")
    private String receiptName;

    /**
     * 收款联系人
     */
    @Column(name="receipt_contact")
    private String receiptContact;

    /**
     * 收款联系人  备份
     */
    @Column(name="receipt_contact_bak")
    private String receiptContactBak;


    /**
     * 公司名称
     */
    @Column(name="company_name")
    private String companyName;

    /**
     * 退款原因
     */
    @Column(name="reimburse_reason")
    private String reimburseReason;


    /**
     * 说明
     */
    @Column(name="remark")
    private String remark;

    /**
     * 当前审核人
     */
    @Column(name="current_auditor_user_id")
    private Long currentAuditorUserId;

    /**
     * 内部成本
     */
    @Column(name="internal_cost")
    private Long internalCost;

    /**
     * 外部成本
     */
    @Column(name="external_cost")
    private Long externalCost;

    /**
     * 业绩
     */
    @Column(name="performance")
    private Long performance;

    /**
     * 利润
     */
    @Column(name="profit")
    private Long profit;

    /**
     * 退款状态
     */
    @Column(name="reimburse_status")
    private String reimburseStatus;

    /**
     * 审核完成时间
     */
    @Column(name="carry_out_time")
    private Date carryOutTime;
    /**
     *  渠道ID
     */
    @Column(name="trench_id")
    private Long trenchId;

    /**
     *  生成订单ID
     */
    @Column(name="order_business_id")
    private Long orderBusinessId;

    /**
     *  生成订单编号
     */
    @Column(name="order_business_no")
    private String orderBusinessNo;

    /**
     *  渠道名称
     */
    @Column(name="trench_name")
    private String trenchName;

    /**
     *  产品名称
     */
    @Column(name="product_name")
    private String productName;

    /**
     * 最新驳回原因
     */
    @Column(name="reject_reason")
    private String rejectReason;

    /**
     *  最新驳回时间
     */
    @Column(name="reject_time")
    private Date rejectTime;

    /**
     *  归属事业部
     */
    @Column(name="affiliation_syb")
    private String affiliationSyb;


    public String getReceiptContactBak() {
        return receiptContactBak;
    }

    public void setReceiptContactBak(String receiptContactBak) {
        this.receiptContactBak = receiptContactBak;
    }

    public String getAffiliationSyb() {
        return affiliationSyb;
    }

    public void setAffiliationSyb(String affiliationSyb) {
        this.affiliationSyb = affiliationSyb;
    }

    public String getReimbursePay() {
        return reimbursePay;
    }

    public void setReimbursePay(String reimbursePay) {
        this.reimbursePay = reimbursePay;
    }

    public String getReimburseNo() {
        return reimburseNo;
    }

    public void setReimburseNo(String reimburseNo) {
        this.reimburseNo = reimburseNo;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getApplyUserId() {
        return applyUserId;
    }

    public void setApplyUserId(Long applyUserId) {
        this.applyUserId = applyUserId;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getReimburseType() {
        return reimburseType;
    }

    public void setReimburseType(Integer reimburseType) {
        this.reimburseType = reimburseType;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getReceiptName() {
        return receiptName;
    }

    public void setReceiptName(String receiptName) {
        this.receiptName = receiptName;
    }

    public String getReceiptContact() {
        return receiptContact;
    }

    public void setReceiptContact(String receiptContact) {
        this.receiptContact = receiptContact;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getReimburseReason() {
        return reimburseReason;
    }

    public void setReimburseReason(String reimburseReason) {
        this.reimburseReason = reimburseReason;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getCurrentAuditorUserId() {
        return currentAuditorUserId;
    }

    public void setCurrentAuditorUserId(Long currentAuditorUserId) {
        this.currentAuditorUserId = currentAuditorUserId;
    }

    public Long getInternalCost() {
        return internalCost;
    }

    public void setInternalCost(Long internalCost) {
        this.internalCost = internalCost;
    }

    public Long getExternalCost() {
        return externalCost;
    }

    public void setExternalCost(Long externalCost) {
        this.externalCost = externalCost;
    }

    public Long getPerformance() {
        return performance;
    }

    public void setPerformance(Long performance) {
        this.performance = performance;
    }

    public Long getProfit() {
        return profit;
    }

    public void setProfit(Long profit) {
        this.profit = profit;
    }

    public String getReimburseStatus() {
        return reimburseStatus;
    }

    public void setReimburseStatus(String reimburseStatus) {
        this.reimburseStatus = reimburseStatus;
    }

    public Date getCarryOutTime() {
        return carryOutTime;
    }

    public void setCarryOutTime(Date carryOutTime) {
        this.carryOutTime = carryOutTime;
    }

    public Long getTrenchId() {
        return trenchId;
    }

    public void setTrenchId(Long trenchId) {
        this.trenchId = trenchId;
    }

    public Long getOrderBusinessId() {
        return orderBusinessId;
    }

    public void setOrderBusinessId(Long orderBusinessId) {
        this.orderBusinessId = orderBusinessId;
    }

    public String getOrderBusinessNo() {
        return orderBusinessNo;
    }

    public void setOrderBusinessNo(String orderBusinessNo) {
        this.orderBusinessNo = orderBusinessNo;
    }

    public String getTrenchName() {
        return trenchName;
    }

    public void setTrenchName(String trenchName) {
        this.trenchName = trenchName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public Date getRejectTime() {
        return rejectTime;
    }

    public void setRejectTime(Date rejectTime) {
        this.rejectTime = rejectTime;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }
}
